﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>禁止文本框的拷贝和粘贴</title>
    <script type="text/javascript" language="JavaScript">
        
        
    </script>
</head>
<body>
<textarea cols=50 rows=5 oncopy="document.selection.empty()"  
          onpaste="return false">
测试是否可以拷贝粘贴
</textarea>
</body>
</html>